<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:p="http://primefaces.org/ui"
      xmlns:ui="http://java.sun.com/jsf/facelets">
    <h:head>
        <script type="text/javascript" language="javascript">
        </script>

        <title>Liste des Enseignants</title>
    </h:head>
    <h:body>
        <ui:include src="entete.xhtml"/>
        <h1>Liste des Enseignants</h1>
        <hr/>
        <p:dataTable value="#{enseignantController.enseignantList}" var="enseignant">

            <p:column>
                <f:facet name="header">
                    <h:outputText value="Nom"/>
                </f:facet>
                <h:form>
                    <p:commandLink value="#{enseignant.prenom} #{enseignant.nom}" action="#{enseignantController.doSelect}"/>
                    <input type="hidden" name="selected" value="#{enseignant.id}"/>
                </h:form>
            </p:column>

        </p:dataTable>

        <hr/>
    </h:body>
</html>
